package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.EhmAdvertisement;
import com.aijk.ehm.model.qo.EhmAdvertisementQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EhmAdvertisementApi {
    Long save(EhmAdvertisement bean) throws ErrorCodeException;

    void update(EhmAdvertisement bean) throws ErrorCodeException;

    EhmAdvertisement findOne(Long id) throws ErrorCodeException;

    List<EhmAdvertisement> list(EhmAdvertisementQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmAdvertisementQo qo);

    PageInfo<EhmAdvertisement> page(EhmAdvertisementQo qo);
}